<?php

require_once ROOT.'lib/smarty/Smarty.class.php';

$tpl = new Smarty();
$tpl->setTemplateDir(ROOT.'tpl/');
$tpl->setCompileDir(ROOT.'tpl_c/');
$tpl->setConfigDir(ROOT.'tpl/');
$tpl->left_delimiter = "<%"; //左定界符
$tpl->right_delimiter = "%>"; //右定界符